package com.example.administrator.questionanswer.utils;

import com.example.administrator.questionanswer.application.MyApplication;
import com.example.administrator.questionanswer.dao.DaoSession;
import com.example.administrator.questionanswer.dao.QuestionBeanDao;
import com.example.administrator.questionanswer.greendao.QuestionBean;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Administrator on 2018/4/2 0002.
 */

public class DBUtils {

    public static void insertData() {
        DaoSession daoSession = MyApplication.getInstances().getDaoSession();
        QuestionBeanDao questionBeanDao = daoSession.getQuestionBeanDao();

        /*第一题*/
        QuestionBean questionBean1 = new QuestionBean();
        questionBean1.setQuesrioId(1L);
        questionBean1.setQuestionAContent("one");
        questionBean1.setQuestionName(" 性别是?");
        questionBean1.setQuestionA("A");
        questionBean1.setQuestionAContent("男");
        questionBean1.setQuestionB("B");
        questionBean1.setQuestionBContent("女");
        questionBeanDao.insertOrReplace(questionBean1);

        /*第二题*/
        QuestionBean questionBean2 = new QuestionBean();
        questionBean2.setQuesrioId(2L);
        questionBean2.setQuestionAContent("one");
        questionBean2.setQuestionName(" 您所在的年级?");
        questionBean2.setQuestionA("A");
        questionBean2.setQuestionAContent("大一");
        questionBean2.setQuestionB("B");
        questionBean2.setQuestionBContent("大二");
        questionBean2.setQuestionC("C");
        questionBean2.setQuestionCContent("大三");
        questionBean2.setQuestionD("D");
        questionBean2.setQuestionDContent("大四");
        questionBeanDao.insertOrReplace(questionBean2);

        /*第三题*/

        QuestionBean questionBean3 = new QuestionBean();
        questionBean3.setQuesrioId(3L);
        questionBean3.setQuestionAContent("one");
        questionBean3.setQuestionName(" 您想过毕业后关于发展方向的事情吗？");
        questionBean3.setQuestionA("A");
        questionBean3.setQuestionAContent("有仔细想过");
        questionBean3.setQuestionB("B");
        questionBean3.setQuestionBContent("偶尔想过");
        questionBean3.setQuestionC("C");
        questionBean3.setQuestionCContent("从未想过");
        questionBeanDao.insertOrReplace(questionBean3);

        /*第四题*/
        QuestionBean questionBean4 = new QuestionBean();
        questionBean4.setQuesrioId(4L);
        questionBean4.setQuestionAContent("one");
        questionBean4.setQuestionName(" 您的职业规划是?");
        questionBean4.setQuestionA("A");
        questionBean4.setQuestionAContent("准备考研");
        questionBean4.setQuestionB("B");
        questionBean4.setQuestionBContent("就业");
        questionBean4.setQuestionC("C");
        questionBean4.setQuestionCContent("自主创业");
        questionBean4.setQuestionD("D");
        questionBean4.setQuestionDContent("考公务员");
        questionBean4.setQuestionE("E");
        questionBean4.setQuestionEContent("出国留学");
        questionBean4.setQuestionF("F");
        questionBean4.setQuestionFContent("其它");
        questionBeanDao.insertOrReplace(questionBean4);

        /*第五题*/
        QuestionBean questionBean5 = new QuestionBean();
        questionBean5.setQuesrioId(5L);
        questionBean5.setQuestionAContent("one");
        questionBean5.setQuestionName(" 在毕业前,您对目前的就业形势和自己未来就业的前景如何看待,最担心那些问题?");
        questionBean5.setQuestionA("A");
        questionBean5.setQuestionAContent("就业压力大，担心找不到工作");
        questionBean5.setQuestionB("B");
        questionBean5.setQuestionBContent("缺乏清晰的职业规划，导致找不到工作");
        questionBean5.setQuestionC("C");
        questionBean5.setQuestionCContent("自身的能力，技能水平不符合企业所用人的标准");
        questionBean5.setQuestionD("D");
        questionBean5.setQuestionDContent("相信自己的能力，不担心自己找不到工作");
//        questionBean5.setQuestionE("E");
//        questionBean5.setQuestionEContent("出国留学");
//        questionBean5.setQuestionF("F");
//        questionBean5.setQuestionFContent("其它");
        questionBeanDao.insertOrReplace(questionBean5);

          /*第六题*/
        QuestionBean questionBean6 = new QuestionBean();
        questionBean6.setQuesrioId(6L);
        questionBean6.setQuestionAContent("many");
        questionBean6.setQuestionName(" 影响您毕业后去向的因素有?(多选)");
        questionBean6.setQuestionA("A");
        questionBean6.setQuestionAContent("兴趣爱好");
        questionBean6.setQuestionB("B");
        questionBean6.setQuestionBContent("薪酬福利");
        questionBean6.setQuestionC("C");
        questionBean6.setQuestionCContent("家人意愿");
        questionBean6.setQuestionD("D");
        questionBean6.setQuestionDContent("个人意愿");
        questionBean6.setQuestionE("E");
        questionBean6.setQuestionEContent("随大流");
        questionBean6.setQuestionF("F");
        questionBean6.setQuestionFContent("其它");
        questionBeanDao.insertOrReplace(questionBean6);


        /*第七题*/
        QuestionBean questionBean7 = new QuestionBean();
        questionBean7.setQuesrioId(7L);
        questionBean7.setQuestionAContent("one");
        questionBean7.setQuestionName(" 您的性格特点？");
        questionBean7.setQuestionA("A");
        questionBean7.setQuestionAContent("文静谨慎型");
        questionBean7.setQuestionB("B");
        questionBean7.setQuestionBContent("内外兼修型");
        questionBean7.setQuestionC("C");
        questionBean7.setQuestionCContent("乐观外向型");
        questionBean7.setQuestionD("D");
        questionBean7.setQuestionDContent("其它");
        questionBeanDao.insertOrReplace(questionBean7);

        /*第八题*/

        QuestionBean questionBean8 = new QuestionBean();
        questionBean8.setQuesrioId(8L);
        questionBean8.setQuestionName(" 在准备求职前，您觉得您应该培养那些能力，具备哪些素质？");
        questionBean8.setQuestionA("A");
        questionBean8.setQuestionAContent("one");
        questionBean8.setQuestionAContent("职业能力和综合素质");
        questionBean8.setQuestionB("B");
        questionBean8.setQuestionBContent("专业技术");
        questionBean8.setQuestionC("C");
        questionBean8.setQuestionCContent("社会实践经验");
        questionBean8.setQuestionD("D");
        questionBean8.setQuestionDContent("其它");
        questionBeanDao.insertOrReplace(questionBean8);

        /*第九题*/
        QuestionBean questionBean9 = new QuestionBean();
        questionBean9.setQuesrioId(9L);
        questionBean9.setQuestionAContent("one");
        questionBean9.setQuestionName(" 您认为您的优势在哪里?");
        questionBean9.setQuestionA("A");
        questionBean9.setQuestionAContent("学习成绩");
        questionBean9.setQuestionB("B");
        questionBean9.setQuestionBContent("专业知识");
        questionBean9.setQuestionC("C");
        questionBean9.setQuestionCContent("实习经验");
        questionBean9.setQuestionD("D");
        questionBean9.setQuestionDContent("考试证书，技能认证");
        questionBean9.setQuestionE("E");
        questionBean9.setQuestionEContent("自认为没有优势");
//        questionBean9.setQuestionF("F");
//        questionBean9.setQuestionFContent("其它");
        questionBeanDao.insertOrReplace(questionBean9);

        /*第十题*/
        QuestionBean questionBean10 = new QuestionBean();
        questionBean10.setQuesrioId(10L);
        questionBean10.setQuestionAContent("one");
        questionBean10.setQuestionName(" 毕业后您心目中打算的或者明确的去向是?");
        questionBean10.setQuestionA("A");
        questionBean10.setQuestionAContent("北上广");
        questionBean10.setQuestionB("B");
        questionBean10.setQuestionBContent("沿海发达省份城市");
        questionBean10.setQuestionC("C");
        questionBean10.setQuestionCContent("中部地区");
        questionBean10.setQuestionD("D");
        questionBean10.setQuestionDContent("西部地区");
        questionBean10.setQuestionE("E");
        questionBean10.setQuestionEContent("家庭所在地");
        questionBeanDao.insertOrReplace(questionBean10);

        /*第十一题*/
        QuestionBean questionBean11 = new QuestionBean();
        questionBean11.setQuesrioId(11L);
        questionBean11.setQuestionAContent("one");
        questionBean11.setQuestionName(" 您对您的第一份工作和酬薪期望是多少?");
        questionBean11.setQuestionA("A");
        questionBean11.setQuestionAContent("1000-2000");
        questionBean11.setQuestionB("B");
        questionBean11.setQuestionBContent("2000-3000");
        questionBean11.setQuestionC("C");
        questionBean11.setQuestionCContent("3000-4000");
        questionBean11.setQuestionD("D");
        questionBean11.setQuestionDContent("4000以上");
        questionBeanDao.insertOrReplace(questionBean11);

        /*第十二题*/

        QuestionBean questionBean12 = new QuestionBean();
        questionBean12.setQuesrioId(12L);
        questionBean12.setQuestionAContent("one");
        questionBean12.setQuestionName(" 您认为用人单位最关心毕业生的哪些条件?");
        questionBean12.setQuestionA("A");
        questionBean12.setQuestionAContent("综合能力");
        questionBean12.setQuestionB("B");
        questionBean12.setQuestionBContent("专业技能");
        questionBean12.setQuestionC("C");
        questionBean12.setQuestionCContent("实践能力");
        questionBean12.setQuestionD("D");
        questionBean12.setQuestionDContent("学历");
        questionBeanDao.insertOrReplace(questionBean12);


    }

}
